#ifndef _np_stdafx
#define _np_stdafx

#ifdef _ANDROID
	#include <android/log.h>

	#include <GLES2/gl2.h>
	#include <GLES2/gl2ext.h>
	#include <GLES2/gl2platform.h>
	#define  LOG_TAG    "visioncontrol"
	#define  LOGI(...)  __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
	#define  LOGE(...)  __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
#else
	//#define GL_GLEXT_PROTOTYPES
#ifdef __CYGWIN32__
	#define  WIN32_LEAN_AND_MEAN
	#include <windows.h>

	#define GLEW_STATIC
	#include <GL/glew.h>
#else
	#define GL_GLEXT_PROTOTYPES
	#ifdef __APPLE__
		#include <OpenGL/gl.h>
		#include <OpenGL/glext.h>
	#else
		#include <GL/gl.h>
		#include <GL/glext.h>
	#endif
#endif
	//#include <GL/wglew.h>
	//#include <GL/gl.h>
	//#include <GL/glext.h>
	//#include <GL/glut.h>
	#define  LOGI(...) printf(__VA_ARGS__)

	void _np_log(const char* msg,...);

	#define  LOGE(...) _np_log(__VA_ARGS__)
#endif

void _np_check_gl_error();
#define CHECKGL _np_check_gl_error()

//*
#ifdef _ANDROID
	#include <stdio.h>
	#include <stdlib.h>
#else
	#include <cstdio>
	#include <cstdlib>
#endif
//*/


#include <math.h>
#include <string.h>
#include <shared_ptr.h>


#endif //#ifndef _np_stdafx
